using System;
using System.Data;

namespace FreeFlow.Administration
{
	/// <summary>
	/// Version of a library.
	/// </summary>
	public class LibraryVersion : Version
	{
    internal LibraryVersion(Server server, IDataReader reader) : base(server, reader)
    {
    }

    private ProcedureVersionCollection procedureVersions;
    /// <summary>
    /// Gets the procedure versions that use this version of the library.
    /// </summary>
    public ProcedureVersionCollection ProcedureVersions
    {
      get
      {
        if (procedureVersions == null)
          procedureVersions = new ProcedureVersionCollection(Server, Name, VersionNumber);
        return procedureVersions;
      }
    }
	}
}
